package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.SysRolerMapper;
import com.zking.ssm.model.SysRoler;
import com.zking.ssm.service.ISysRolerService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class SysRolerServiceImpl implements ISysRolerService {

    @Autowired
    private SysRolerMapper sysRolerMapper;


    @Override
    public int deleteByPrimaryKey(Long roleId) {
        return sysRolerMapper.deleteByPrimaryKey(roleId);
    }

    @Override
    public int insert(SysRoler record) {
        return sysRolerMapper.insert(record);
    }

    @Override
    public int insertSelective(SysRoler record) {
        return sysRolerMapper.insertSelective(record);
    }

    @Override
    public SysRoler selectByPrimaryKey(Long roleId) {
        return sysRolerMapper.selectByPrimaryKey(roleId);
    }

    @Override
    public int updateByPrimaryKeySelective(SysRoler record) {
        return sysRolerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysRoler record) {
        return sysRolerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SysRoler> selectAll(SysRoler sysRoler, PageBean pageBean) {
        return sysRolerMapper.selectAll(sysRoler);
    }

    @Override
    public SysRoler selectRoleId(SysRoler sysRoler) {
        return sysRolerMapper.selectRoleId(sysRoler);
    }

    @Override
    public List<SysRoler> noSelectRole(SysRoler sysRoler) {
        return sysRolerMapper.noSelectRole(sysRoler);
    }

}
